using System;
using System.Windows;
using System.Data;
using System.Xml;
using System.Configuration;

using Microsoft.VisualBasic.ApplicationServices;
using Rapier.Kodachi.WinForm;
using System.Windows.Forms;

namespace Rapier.Kodachi
{
    public class EntryPoint
    {
        [STAThread]
        public static void Main(string[] args)
        {
            using(SingleProgramInstance spi = new SingleProgramInstance("KodachiRulez"))
             {
                 if (spi.IsSingleInstance)
                 {
                     Application.Run(new WindowMain());
                 }
                 else
                 {
                     spi.RaiseOtherProcess();
                 }
            }
        }    
    }
}